package com.rraj.common.fuse;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by hqm on 2017/6/19.
 * 熔断器
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Fuse {

    String fuseKey() default "default";

    /**
     * 过期时间,单位 秒
     * @return
     */
    int timeout() default 2*60;
}
